﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Core.Module.Interfaces.Model;
using System.Net.Mail;

namespace Module.MailingSystem.Interfaces
{
   public interface IMailController
    {
       IMailTemplate GetTemplate(IModuleNode forPage, string templateFieldName, Dictionary<string, string> mailReplacements);
       bool Send(IModuleNode forPage, IMailTemplate template);
       bool Send(int forPage, string templateFieldAliasOrTemplateName, Dictionary<string, string> mailReplacements);
       MailMessage Convert(IModuleNode forPage, IMailTemplate templateMessage);
    }
}
